var bindReturn = {
	init : function(){
		bindReturn.bindRedirect();
	},
	bindRedirect : function(){
		var url = "/web/home/showBindingList";
		if(code){
			url = "/web/home/oauthCallBack?code=" + code + "&bindingType=" + bindingType;
		}
		
		$.ajax({
			type: "GET",
			url: url,
			dataType: "json",
			success: function(data) {
				console.log(data);
			},
			error: function(XMLHttpRequest, textStatus, errorThrown) {
				alert("网络错误");
			}
		});
	},
	finish : function(){
		$("#finish").bind('click',function(){
			bindReturn.bindRedirect();
		});
	}
};